package com.lgc.webtest.controller;

import com.lgc.webtest.service.RedisService;
import com.lgc.webtest.service.SingleRedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/single-redis")
public class SingleRedisController {

    /*@Autowired
    private SingleRedisService redisService;

    @RequestMapping("/testSingleRedis")
    public String testSingleRedis(){
        int a =redisService.saveInteger();

        return "index";
    }

    *//**
     * 集合set
     * @return
     *//*
    @RequestMapping("/testInteger")
    public String testInteger(){
        redisService.saveInteger();

        return "testInteger";
    }

    *//**
     * 集合List
     * @return
     *//*
    @RequestMapping("/testCollectionList")
    public String testCollectionList(){
        redisService.testCollectionList();

        return "testCollectionSet";
    }*/
}
